﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class End : MonoBehaviour
{
    public float coutTime ;
    // Start is called before the first frame update
    void Start()
    {
        coutTime = 0f;
    }

    // Update is called once per frame
    void Update()
    {
        coutTime += Time.deltaTime;
        if(coutTime>=5)
        {
            SceneManager.LoadScene("End");
        }
    }
}
